# -*- coding: utf-8 -*-
# @Time : 2023/10/2 4:22 PM 
# @Author : Wayne
# @Email : 1
# @File : float_str.py
# @Project : python_demo
# @DESCRIPTION :

"""
float类型的数据做相关运算或者选择，其余相关type类型可以参考
default_data文件
"""
new_list_array = [{"skuField9": "400800", "skuField25": None, "goodsNameEn": "SHANHE", "skuField8": "10%羊毛+90%涤纶",
                   "skuField7": "羊毛+涤纶", "skuField27": 0.16, "skuField4": "2023-05-10T00:00:00", "skuField3": "中国",
                   "skuField2": "庐山风貌SHE07", "skuField1": "40*40", "cateName": "汇惠家品牌",
                   "skuName": "山河 NM03558ZC-1 40*40", "skuField10": "9mm", "skuField12": "锁边", "skuField13": None,
                   "goodsName": "山河", "goodsField8": "", "goodsNo": "F2D13SHE070404", "skuField18": 0.16,
                   "skuField19": "NM03558ZC-1", "goodsField9": "1947克", "goodsField10": None, "skuField14": "威尔顿机织",
                   "goodsField11": "内销", "unitName": "条", "skuLength": 40, "skuField15": None, "skuField16": None,
                   "skuField17": None, "skuWidth": 40, "skuField21": 0, "skuField22": None, "goodsField1": "正方形",
                   "skuField23": None, "goodsField2": "7", "goodsField3": "机织", "skuBarcode": "F2D13SHE070404",
                   "skuField24": "", "fixPrice": 13.6, "skuWeight": 10095, "skuField20": 0}]

for i in new_list_array:
    # 使用keys()方法获取所有键,获取dic中的数据如下
    keys = i.keys()
    # 遍历并打印所有键
    for key in keys:
        typei = type(i[key])
        # print("\n" +"key*"+key + "***value=" + str(i[key]) +"类型如下")
        # print( type(i[key]))
        if typei == float:
            print("浮点类型，数据如下=" + str(i[key]))
